package com.janas.kktv;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class FoodTaggingActivity extends Activity{
	
	public final String TAG = FoodTaggingActivity.class.getSimpleName();

	private Button mbtnManualTagging, mbtnBarcodeTagging;
	
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_food_tagging);		
		
		mbtnManualTagging 	= (Button) findViewById(R.id.manualTaggingButton);
		mbtnManualTagging.setOnClickListener( new ManualTagging() );
		
		mbtnBarcodeTagging 	= (Button) findViewById(R.id.barcodeTaggingButton);
		mbtnBarcodeTagging.setOnClickListener( new BarcodeTagging() );
	}
	
	
	private class ManualTagging implements OnClickListener {
		
		@Override
		public void onClick(View v) {
			
			Intent lManualTagging = new Intent(FoodTaggingActivity.this, ManualTaggingActivity.class);
			startActivity(lManualTagging);
			Log.d( TAG, "ManualTagging");
		}		
	}
	
	
	private class BarcodeTagging implements OnClickListener {
		
		@Override
		public void onClick(View v) {
			
			Log.d( TAG, "BarcodeTagging");
		}		
	}
	

}
